﻿USE [Sandbox]
GO

/****** Object:  Table [dbo].[Ref_Test]    Script Date: 7/12/2013 6:47:21 PM ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[Ref_Test](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[Description] [varchar](50) NOT NULL,
	[Description2] [varchar](50) NULL,
	[CreateDate] [datetime] NULL,
	[BooleanTest] [bit] NULL,
	[NullId] [int] NULL,
 CONSTRAINT [PK_Ref_Test] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[Ref_Test] ADD  CONSTRAINT [DF_Ref_Test_CreateDate]  DEFAULT (getdate()) FOR [CreateDate]
GO

ALTER TABLE [dbo].[Ref_Test] ADD  CONSTRAINT [DF_Ref_Test_BooleanTest]  DEFAULT ((1)) FOR [BooleanTest]
GO



